package com.gwcm.model.dto.menu;

import com.gwcm.model.entity.Menu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel(description = "菜单修改请求参数")
public class MenuUpdateRequest {
    private Long id;
    @ApiModelProperty("菜单名称")
    private String menuName;
    @ApiModelProperty("父菜单ID")
    private Long parentId;
    @ApiModelProperty("显示顺序")
    private Integer menuSort;
    @ApiModelProperty("路由地址")
    private String path;
    @ApiModelProperty("组件路径")
    private String component;
    @ApiModelProperty("菜单类型（M目录 C菜单 F按钮）")
    private String menuType;
    @ApiModelProperty("菜单状态（0显示 1隐藏）")
    private String visible;
    @ApiModelProperty("菜单状态（0正常 1停用）")
    private String status;
    @ApiModelProperty("权限标识")
    private String perms;
    @ApiModelProperty("菜单图标")
    private String icon;
    @ApiModelProperty("子菜单（根据parentId字段构建父子树形菜单）")
    private List<Menu> children = new ArrayList<Menu>();
}
